import request from '@/utils/request'

// 查询商品点赞和收藏列表
export function listStoreProductRelation(query) {
  return request({
    url: '/business/storeProductRelation/list',
    method: 'get',
    params: query
  })
}

// 查询商品点赞和收藏所有列表
export function listAllStoreProductRelation(query) {
  return request({
    url: '/business/storeProductRelation/listAll',
    method: 'get',
    params: query
  })
}

// 查询商品点赞和收藏详细
export function getStoreProductRelation(id) {
  return request({
    url: '/business/storeProductRelation/getInfo/' + id,
    method: 'get'
  })
}

// 新增商品点赞和收藏
export function addStoreProductRelation(data) {
  return request({
    url: '/business/storeProductRelation/add',
    method: 'post',
    data: data
  })
}

// 修改商品点赞和收藏
export function updateStoreProductRelation(data) {
  return request({
    url: '/business/storeProductRelation/edit',
    method: 'post',
    data: data
  })
}

// 删除商品点赞和收藏
export function delStoreProductRelation(id) {
  return request({
    url: '/business/storeProductRelation/remove/' + id,
    method: 'get'
  })
}
